/*
 * Hyuga: A Density-Grid Stream Clustering Platform.
 * Copyright (C) 2014 PUC-Rio/Laboratory for Advanced Collaboration
 *
 * Hyuga is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Hyuga is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Hyuga.  If not, see <http://www.gnu.org/licenses/>.
 */
package br.pucrio.inf.lac.konoha.hyuga.events.grid;

/**
 * Represent a cell cluster dispersion event that has obtained a lock to the cluster list (data stream).
 * 
 * This is useful because the Hyuga engine can now verify and remove the now non-dense cluster that contains this cell.
 * 
 * @author Marcos Roriz <mroriz@inf.puc-rio.br>
 */
public class LockedCellDisperseEvent {

    // Dispersed Cell Indexes
    protected int x;
    protected int y;
    
    /** Empty Constructor */
    public LockedCellDisperseEvent() {}

    /**
     * Dispersed cell indexes.
     * @param x the dispersed cell x index.
     * @param y the dispersed cell y index.
     */
    public LockedCellDisperseEvent(int x, int y) {
        this.x = x;
        this.y = y;
    }

    //////////////////////////////////////////////////////////////////////////
    // Gets and Sets
    //////////////////////////////////////////////////////////////////////////

    public int getX() {
        return x;
    }
    
    public int getY() {
        return y;
    }
    
    public void setX(int x) {
        this.x = x;
    }
    
    public void setY(int y) {
        this.y = y;
    }
}
